<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>蔡然发 - Java开发工程师简历</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <style>
        /* 移动端优化样式 */
        .mobile-card {
            margin: 1rem;
            border-radius: 16px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .mobile-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 0 0 24px 24px;
            padding: 2rem 1rem;
            text-align: center;
            color: white;
        }
        
        .floating-action {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
            background: #667eea;
            color: white;
            border-radius: 50%;
            width: 56px;
            height: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-around;
            padding: 0.5rem 0;
            z-index: 999;
        }
        
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #6b7280;
            font-size: 0.75rem;
        }
        
        .bottom-nav-item.active {
            color: #667eea;
        }
        
        .skill-tag {
            display: inline-block;
            background: #f3f4f6;
            color: #374151;
            padding: 0.25rem 0.75rem;
            border-radius: 16px;
            font-size: 0.875rem;
            margin: 0.125rem;
        }
        
        .timeline-mobile {
            border-left: 2px solid #667eea;
            padding-left: 1rem;
            margin-left: 1rem;
        }
        
        .timeline-item-mobile {
            position: relative;
            margin-bottom: 1.5rem;
        }
        
        .timeline-item-mobile::before {
            content: '';
            position: absolute;
            left: -1.375rem;
            top: 0.5rem;
            width: 0.75rem;
            height: 0.75rem;
            background: #667eea;
            border-radius: 50%;
        }
    </style>
</head>
<body class="bg-gray-50 pb-16">
    <div id="app">
        <!-- 移动端头部 -->
        <header class="mobile-header">
            <div class="w-20 h-20 rounded-full mx-auto mb-3 border-4 border-white bg-white bg-opacity-20 flex items-center justify-center text-3xl font-bold">
                蔡
            </div>
            <h1 class="text-2xl font-bold">蔡然发</h1>
            <p class="text-lg opacity-90">Java开发工程师</p>
            <div class="mt-3 space-y-1">
                <p class="text-sm"><i class="fas fa-map-marker-alt mr-2"></i>深圳龙岗</p>
                <p class="text-sm"><i class="fas fa-phone mr-2"></i>13066187521</p>
            </div>
        </header>

        <!-- 主要内容 -->
        <main class="px-4 py-4 space-y-4">
            <!-- 个人信息卡片 -->
            <div class="mobile-card bg-white p-4">
                <h2 class="text-lg font-bold mb-3 text-gray-800">个人信息</h2>
                <div class="grid grid-cols-2 gap-2 text-sm">
                    <div><strong>姓名：</strong>蔡然发</div>
                    <div><strong>性别：</strong>男</div>
                    <div><strong>年龄：</strong>23岁</div>
                    <div><strong>学历：</strong>大专</div>
                    <div class="col-span-2"><strong>邮箱：</strong>2857357874@qq.com</div>
                    <div class="col-span-2"><strong>微信：</strong>cairanfa</div>
                </div>
            </div>

            <!-- 求职意向 -->
            <div class="mobile-card bg-white p-4">
                <h2 class="text-lg font-bold mb-3 text-gray-800">求职意向</h2>
                <div class="space-y-2 text-sm">
                    <div class="flex justify-between">
                        <span class="text-gray-600">工作性质：</span>
                        <span>全职</span>
                    </div>
                    <div class="flex justify-between">
                        <span class="text-gray-600">目标职位：</span>
                        <span>Java开发工程师</span>
                    </div>
                    <div class="flex justify-between">
                        <span class="text-gray-600">目标地点：</span>
                        <span>深圳</span>
                    </div>
                    <div class="flex justify-between">
                        <span class="text-gray-600">目前状况：</span>
                        <span class="text-green-600">我目前处于离职状态，可立即上岗</span>
                    </div>
                </div>
            </div>

            <!-- 工作经历 -->
            <div class="mobile-card bg-white p-4">
                <h2 class="text-lg font-bold mb-3 text-gray-800">工作经历</h2>
                <div class="timeline-mobile">
                    <div class="timeline-item-mobile">
                        <div class="bg-blue-50 p-3 rounded-lg">
                            <h3 class="font-bold text-sm">深圳市富泰华工业有限公司</h3>
                            <p class="text-xs text-gray-600 mb-2">2023.3 - 2024.12 | Java开发</p>
                            <ul class="text-xs space-y-1">
                                <li>• 项目开发与维护</li>
                                <li>• 软件测试与质量保证</li>
                                <li>• 团队协作与项目交付</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 技能展示 -->
            <div class="mobile-card bg-white p-4">
                <h2 class="text-lg font-bold mb-3 text-gray-800">专业技能</h2>
                <div class="space-y-3">
                    <div>
                        <h3 class="text-sm font-semibold mb-2">Java核心技术</h3>
                        <div class="flex flex-wrap">
                            <span class="skill-tag">Java 8+</span>
                            <span class="skill-tag">Lambda</span>
                            <span class="skill-tag">Stream API</span>
                            <span class="skill-tag">集合框架</span>
                        </div>
                    </div>
                    <div>
                        <h3 class="text-sm font-semibold mb-2">Spring框架</h3>
                        <div class="flex flex-wrap">
                            <span class="skill-tag">Spring Boot</span>
                            <span class="skill-tag">Spring MVC</span>
                            <span class="skill-tag">MyBatis-Plus</span>
                            <span class="skill-tag">事务管理</span>
                        </div>
                    </div>
                    <div>
                        <h3 class="text-sm font-semibold mb-2">数据库</h3>
                        <div class="flex flex-wrap">
                            <span class="skill-tag">MySQL</span>
                            <span class="skill-tag">JDBC</span>
                            <span class="skill-tag">索引优化</span>
                        </div>
                    </div>
                    <div>
                        <h3 class="text-sm font-semibold mb-2">其他技术</h3>
                        <div class="flex flex-wrap">
                            <span class="skill-tag">多线程</span>
                            <span class="skill-tag">网络编程</span>
                            <span class="skill-tag">Git</span>
                            <span class="skill-tag">RESTful API</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 项目经验 -->
            <div class="mobile-card bg-white p-4">
                <h2 class="text-lg font-bold mb-3 text-gray-800">项目经验</h2>
                <div class="bg-gradient-to-r from-blue-50 to-purple-50 p-3 rounded-lg">
                    <h3 class="font-bold text-sm">医疗康养平台系统</h3>
                    <p class="text-xs text-gray-600 mb-2">SpringBoot + MyBatis-Plus + MySQL</p>
                    <p class="text-xs mb-2">负责护理服务管理模块开发，包括护理项目、护理计划、护理等级等功能。</p>
                    <div class="flex flex-wrap gap-1">
                        <span class="text-xs bg-blue-200 text-blue-800 px-2 py-1 rounded">6个月</span>
                        <span class="text-xs bg-green-200 text-green-800 px-2 py-1 rounded">已上线</span>
                    </div>
                </div>
            </div>

            <!-- 教育背景 -->
            <div class="mobile-card bg-white p-4">
                <h2 class="text-lg font-bold mb-3 text-gray-800">教育背景</h2>
                <div class="flex items-center">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
                        <i class="fas fa-graduation-cap text-blue-600"></i>
                    </div>
                    <div>
                        <h3 class="font-bold text-sm">茂名职业技术学院</h3>
                        <p class="text-xs text-gray-600">2021.9 - 2024.7 | 大专</p>
                    </div>
                </div>
            </div>

            <!-- 自我评价 -->
            <div class="mobile-card bg-white p-4">
                <h2 class="text-lg font-bold mb-3 text-gray-800">自我评价</h2>
                <div class="space-y-2 text-sm">
                    <p class="bg-gray-50 p-2 rounded">内敛稳重，做事有始有终，责任心强</p>
                    <p class="bg-gray-50 p-2 rounded">服从安排，自律性强，积极配合管理</p>
                    <p class="bg-gray-50 p-2 rounded">上进心强，勤于学习，不断提升自我</p>
                </div>
            </div>

            <!-- 联系方式 -->
            <div id="contact" class="mobile-card bg-white p-4">
                <h2 class="text-lg font-bold mb-3 text-gray-800">联系方式</h2>
                <div class="space-y-3">
                    <div class="flex items-center p-3 bg-gray-50 rounded-lg">
                        <div class="w-10 h-10 bg-green-100 rounded-full flex items-center justify-center mr-3">
                            <i class="fas fa-phone text-green-600"></i>
                        </div>
                        <div>
                            <div class="text-sm font-semibold">电话</div>
                            <a href="tel:13066187521" class="text-blue-600 text-sm">130-6618-7521</a>
                        </div>
                    </div>
                    
                    <div class="flex items-center p-3 bg-gray-50 rounded-lg">
                        <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
                            <i class="fas fa-envelope text-blue-600"></i>
                        </div>
                        <div>
                            <div class="text-sm font-semibold">邮箱</div>
                            <a href="mailto:2857357874@qq.com" class="text-blue-600 text-sm">2857357874@qq.com</a>
                        </div>
                    </div>
                    
                    <div class="flex items-center p-3 bg-gray-50 rounded-lg">
                        <div class="w-10 h-10 bg-purple-100 rounded-full flex items-center justify-center mr-3">
                            <i class="fab fa-weixin text-purple-600"></i>
                        </div>
                        <div>
                            <div class="text-sm font-semibold">微信</div>
                            <span class="text-sm text-gray-700">cairanfa</span>
                        </div>
                    </div>
                </div>
            </div>
        </main>

        <!-- 底部导航 -->
        <nav class="bottom-nav">
            <a href="#top" class="bottom-nav-item" onclick="scrollToTop()">
                <i class="fas fa-home"></i>
                <span>首页</span>
            </a>
            <a href="#skills" class="bottom-nav-item" onclick="scrollToSection('skills')">
                <i class="fas fa-cogs"></i>
                <span>技能</span>
            </a>
            <a href="#projects" class="bottom-nav-item" onclick="scrollToSection('projects')">
                <i class="fas fa-project-diagram"></i>
                <span>项目</span>
            </a>
            <a href="#contact" class="bottom-nav-item" onclick="scrollToSection('contact')">
                <i class="fas fa-phone"></i>
                <span>联系</span>
            </a>
        </nav>

        <!-- 浮动操作按钮 -->
        <button class="floating-action" onclick="scrollToTop()">
            <i class="fas fa-chevron-up"></i>
        </button>
    </div>

    <script>
        const { createApp } = Vue;

        createApp({
            data() {
                return {
                    activeSection: 'home'
                }
            },
            mounted() {
                // 移动端优化
                this.setupMobileNav();
            },
            methods: {
                setupMobileNav() {
                    // 底部导航高亮
                    const sections = ['home', 'skills', 'projects', 'contact'];
                    const observer = new IntersectionObserver((entries) => {
                        entries.forEach(entry => {
                            if (entry.isIntersecting) {
                                this.activeSection = entry.target.id;
                            }
                        });
                    }, { threshold: 0.5 });

                    sections.forEach(section => {
                        const element = document.getElementById(section);
                        if (element) observer.observe(element);
                    });
                }
            }
        }).mount('#app');

        // 移动端专用函数
        function scrollToTop() {
            window.scrollTo({ top: 0, behavior: 'smooth' });
        }

        function scrollToSection(sectionId) {
            const element = document.querySelector(`[id*="${sectionId}"]`);
            if (element) {
                element.scrollIntoView({ behavior: 'smooth', block: 'start' });
            }
        }

        // 隐藏浮动按钮
        let lastScrollTop = 0;
        window.addEventListener('scroll', function() {
            const floatingBtn = document.querySelector('.floating-action');
            const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
            
            if (scrollTop > lastScrollTop && scrollTop > 100) {
                floatingBtn.style.transform = 'translateY(100px)';
            } else {
                floatingBtn.style.transform = 'translateY(0)';
            }
            
            lastScrollTop = scrollTop;
        });
    </script>
    
    <script>
        // 移动端专用功能修复
        
        // 修复滚动到顶部功能
        function scrollToTop() {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        }
        
        // 修复滚动到指定区域功能
        function scrollToSection(sectionClass) {
            const sections = document.querySelectorAll('.mobile-card');
            let targetSection = null;
            
            // 根据导航项查找对应的内容区域
            for (let section of sections) {
                const h2 = section.querySelector('h2');
                if (h2 && h2.textContent.includes(sectionClass)) {
                    targetSection = section;
                    break;
                }
            }
            
            if (targetSection) {
                targetSection.scrollIntoView({
                    behavior: 'smooth',
                    block: 'start'
                });
            }
        }
        
        // 修复底部导航点击事件
        document.addEventListener('DOMContentLoaded', function() {
            // 为底部导航项添加点击事件
            const bottomNavItems = document.querySelectorAll('.bottom-nav-item');
            bottomNavItems.forEach(item => {
                item.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    // 移除所有active类
                    bottomNavItems.forEach(nav => nav.classList.remove('active'));
                    
                    // 添加active类到当前项
                    this.classList.add('active');
                    
                    // 获取目标区域
                    const text = this.querySelector('span').textContent;
                    let targetSection = '';
                    
                    switch(text) {
                        case '首页':
                            scrollToTop();
                            break;
                        case '技能':
                            scrollToSection('专业技能');
                            break;
                        case '项目':
                            scrollToSection('项目经验');
                            break;
                        case '联系':
                            scrollToSection('联系方式');
                            break;
                    }
                });
            });
            
            // 为浮动按钮添加点击事件
            const floatingBtn = document.querySelector('.floating-action');
            if (floatingBtn) {
                floatingBtn.addEventListener('click', scrollToTop);
            }
            
            // 为联系方式按钮添加功能
            const contactLinks = document.querySelectorAll('a[href^="tel:"], a[href^="mailto:"]');
            contactLinks.forEach(link => {
                link.addEventListener('click', function(e) {
                    // 这些链接已经可以直接工作，不需要额外处理
                });
            });
            
            // 添加滚动监听，更新底部导航状态
            window.addEventListener('scroll', function() {
                const sections = document.querySelectorAll('.mobile-card');
                const navItems = document.querySelectorAll('.bottom-nav-item');
                
                let currentSection = '';
                sections.forEach(section => {
                    const rect = section.getBoundingClientRect();
                    if (rect.top <= 100 && rect.bottom >= 100) {
                        const h2 = section.querySelector('h2');
                        if (h2) {
                            const title = h2.textContent;
                            if (title.includes('专业技能')) currentSection = '技能';
                            else if (title.includes('项目经验')) currentSection = '项目';
                            else if (title.includes('联系方式')) currentSection = '联系';
                        }
                    }
                });
                
                // 更新导航状态
                navItems.forEach(item => {
                    const itemText = item.querySelector('span').textContent;
                    if (itemText === currentSection) {
                        item.classList.add('active');
                    } else if (currentSection === '' && itemText === '首页') {
                        item.classList.add('active');
                    } else {
                        item.classList.remove('active');
                    }
                });
                
                // 控制浮动按钮显示/隐藏
                const floatingBtnControl = document.querySelector('.floating-action');
                if (floatingBtnControl) {
                    if (window.pageYOffset > 300) {
                        floatingBtnControl.style.display = 'flex';
                    } else {
                        floatingBtnControl.style.display = 'none';
                    }
                }
            });
            
            // 初始化浮动按钮状态
            const floatingBtnInit = document.querySelector('.floating-action');
            if (floatingBtnInit) {
                floatingBtnInit.style.display = 'none';
            }
        });
        
        // 为Vue实例添加方法（如果需要的话）
        // 移动端版本主要使用原生JavaScript，不需要Vue实例
    </script>
</body>
</html>